﻿@using QuocHoi_TV_Frontend.Models
@{List<News> lstvideonews = DataModels.GetVideoNews(5);}
<div id="videos_cm">
    <div class="left_videos_cm">
        <div class="tile_lvcm">
            <p>Videos</p>
            <div class="btxemct">
                <a href="@Url.RouteUrl("BroadCastHome")">Xem tất cả video</a>
            </div>
        </div>
        <div class="showvideocm">
            <ul>
                @{int i = 0;}
                @foreach (News item in lstvideonews)
                {
                    string strlinkNews = Url.RouteUrl("BroadCastDetail",
                                      new
                                      {
                                          controller = "Broadcast",
                                          action = "Detail",
                                          cate_name = Util.RemoveSign4VietnameseString(item.Category.CateName),
                                          news_title = Util.RemoveSign4VietnameseString(item.NewsTitle),
                                          newsID = item.NewsID
                                      });
                    if (i > 0)
                    {
                    <li>
                        <div class="img_video_cm">
                            <a href="@Html.Raw(strlinkNews)" class="story">
                                <img width="242" height="135" src="@item.PathImgLarge" alt="@Html.Raw(NewsHelper.Sliptsubject(item.NewsTitle, 20))">
                                <span class="overlay">
                                    <strong class="headline">@Html.Raw(NewsHelper.Sliptsubject(item.NewsTitle, 60))</strong>
                                </span>
                                <img width="35" height="35" src="/Images/bgqhtv/video-play-icon.png" class="icon_play">
                            </a>
                        </div>
                    </li>
                    }

                    i++;
                }

            </ul>
        </div>
    </div>
    @{
        News lastestnews = lstvideonews[0];
        string strlinklastestnews = Url.RouteUrl("BroadCastDetail",
                                          new
                                          {
                                              controller = "Broadcast",
                                              action = "Detail",
                                              cate_name = Util.RemoveSign4VietnameseString(lastestnews.Category.CateName),
                                              news_title = Util.RemoveSign4VietnameseString(lastestnews.NewsTitle),
                                              newsID = lastestnews.NewsID
                                          });
    }
    <div class="right_videos_cm">
        <div class="day_ifon">@Html.Raw(UtilDate.FormatDateVN(DateTime.Parse(lastestnews.CreateDate.ToString())))</div>
        <div class="tile_videobig">
            <a href="@Html.Raw(strlinklastestnews)">@Html.Raw(NewsHelper.Sliptsubject(lastestnews.NewsTitle, 60))</a>
        </div>
        <div class="img_vb">
            <a href="@Html.Raw(strlinklastestnews)">
                <img width="509" height="330" src="@lastestnews.PathImgLarge">
                <img width="58" height="58" src="/Images/bgqhtv/video-play-icon.png" class="icon_play">
            </a>
        </div>
    </div>
</div>
